package cn.zb.zbrhback.auth.service.impl;

import cn.zb.zbrhback.auth.domain.Permission;
import cn.zb.zbrhback.auth.domain.PermissionQuery;
import cn.zb.zbrhback.auth.mapper.PermissionMapper;
import cn.zb.zbrhback.auth.service.IPermissionService;
import cn.zb.zbrhback.basic.service.impl.BaseServiceImpl;
import cn.zb.zbrhback.basic.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {

    @Resource
    private PermissionMapper permissionMapper;


    @Override
    public List<String> getPermissionSns() {
        return permissionMapper.getPermissionSns();
    }
}
